package librus.cheeseChaser.tile
{
	import flash.geom.Point;
	

	public class TileModel
	{
		
		public function TileModel(tile:Tile)
		{
			this.tileView = tile;
			active = true;			
		}
		
		private var tileView:Tile;		
		public var position:Point;
		public var active:Boolean;
		
		public function get type():TileType
		{
			return tileView.type;
		}
		
		
		public function isMouse():Boolean
		{
			return type.value == TileType.MOUSE_BROWN.value || type.value == TileType.MOUSE_GREY.value;
		}
		
		public function isCheese():Boolean
		{
			return type.value == TileType.CHEESE.value;
		}
		public function reset():void
		{
			active = true;
		}		
	}
}